/* This script was originally from OLX.com. This Notice Must Remain for Legal Use*/
 <script>
 $(document).ready(function(){
   $(&#39;.timeline-item&#39;).first().addClass(&#39;active&#39;);
   $(&#39;article.2006&#39;).slideToggle();
   $(&#39;.timeline-item&#39;).click(function(e) {
    e.preventDefault();
    var clickid = $(this).attr(&#39;id&#39;);
    var active = $(&#39;.timeline-item.active&#39;);
    var activeid = active.attr(&#39;id&#39;);

    if ( $(this).hasClass(&#39;active&#39;) ) {
     return;
    }
    else {
     active.removeClass(&#39;active&#39;);
     $(this).addClass(&#39;active&#39;);
     $(&quot;article.&quot;+ activeid ).slideToggle();
     $(&quot;article.&quot;+ clickid ).slideToggle();
    }
   });

   $(&quot;.carousel span:first&quot;).fadeIn();

   jQuery.fn.timer = function() {
    if(!$(&#39;.carousel&#39;).children(&quot;span:last-child&quot;).is(&quot;:visible&quot;)){
     $(&#39;.carousel&#39;).children(&quot;span:visible&quot;)
      .fadeOut()
      .next(&quot;span&quot;).fadeIn();
    }
    else{
     $(&#39;.carousel&#39;).children(&quot;span:visible&quot;)
      .fadeOut()
     .end().children(&quot;span:first&quot;) 
      .fadeIn;
     $(&quot;.carousel span:first&quot;).fadeIn();
    }
   } // timer function end
   
   window.setInterval(function() {
    $(&#39;.carousel&#39;).timer();
   }, 1500);

     });
 </script>